package com.neu.carbon.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.wms.mapper.WmsInWarehouseApplyMapper;
import com.neu.carbon.wms.domain.WmsInWarehouseApply;
import com.neu.carbon.wms.service.IWmsInWarehouseApplyService;

/**
 * 入库申请Service业务层处理
 * 
 * @author neuedu
 * @date 2025-03-17
 */
@Service
public class WmsInWarehouseApplyServiceImpl implements IWmsInWarehouseApplyService 
{
    @Autowired
    private WmsInWarehouseApplyMapper wmsInWarehouseApplyMapper;

    /**
     * 查询入库申请
     * 
     * @param id 入库申请ID
     * @return 入库申请
     */
    @Override
    public WmsInWarehouseApply selectWmsInWarehouseApplyById(Long id)
    {
        return wmsInWarehouseApplyMapper.selectWmsInWarehouseApplyById(id);
    }

    /**
     * 查询入库申请列表
     * 
     * @param wmsInWarehouseApply 入库申请
     * @return 入库申请
     */
    @Override
    public List<WmsInWarehouseApply> selectWmsInWarehouseApplyList(WmsInWarehouseApply wmsInWarehouseApply)
    {
        return wmsInWarehouseApplyMapper.selectWmsInWarehouseApplyList(wmsInWarehouseApply);
    }

    /**
     * 新增入库申请
     * 
     * @param wmsInWarehouseApply 入库申请
     * @return 结果
     */
    @Override
    public int insertWmsInWarehouseApply(WmsInWarehouseApply wmsInWarehouseApply)
    {
        return wmsInWarehouseApplyMapper.insertWmsInWarehouseApply(wmsInWarehouseApply);
    }

    /**
     * 修改入库申请
     * 
     * @param wmsInWarehouseApply 入库申请
     * @return 结果
     */
    @Override
    public int updateWmsInWarehouseApply(WmsInWarehouseApply wmsInWarehouseApply)
    {
        return wmsInWarehouseApplyMapper.updateWmsInWarehouseApply(wmsInWarehouseApply);
    }

    /**
     * 批量删除入库申请
     * 
     * @param ids 需要删除的入库申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsInWarehouseApplyByIds(Long[] ids)
    {
        return wmsInWarehouseApplyMapper.deleteWmsInWarehouseApplyByIds(ids);
    }

    /**
     * 删除入库申请信息
     * 
     * @param id 入库申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsInWarehouseApplyById(Long id)
    {
        return wmsInWarehouseApplyMapper.deleteWmsInWarehouseApplyById(id);
    }
}
